package cn.com.se.sharepictrue.widget;

import android.app.Activity;
import android.os.Message;
import android.support.annotation.Nullable;

/**
 * Created by KIDNG on 2015/11/14.
 */
public abstract class StringHttpHandler extends HttpHandler {
    public StringHttpHandler(Activity activity) {
        super(activity);
    }

    @Override
    public void success(Message msg) {
        success((String) msg.obj);
    }

    public abstract void success(@Nullable String msg);

    @Override
    public void fail(Message msg) {
        fail((String) msg.obj);
    }

    protected abstract void fail(@Nullable String obj);


    @Override
    public void internetError(Message msg) {
        internetError((String) msg.obj);
    }

    protected abstract void internetError(@Nullable String obj);
}
